<?php
require_once '../../Lib/main.php';
$id = null;
if (isset($_REQUEST['id']) && trim($_REQUEST['id']) !== '') {
	$id = $_REQUEST['id'];
}
$productDao = new Dao_ProductDAO();
$product = $productDao->getProductObjById($id);
if ($product === null || $product === false) {
	echo "";
} else {
	echo $product->getDetail();
}